/***********************************************************************************
*	File: DestroyEntityMessage.h
*	Author: Keisuke Miyazaki
*	Project: Mari's Flower
*	Date: 09/29/2013
***********************************************************************************/
#include "DestroyEntityMessage.h"
#include "../GameObjects/Entity.h"

CDestroyEntityMessage::CDestroyEntityMessage( CEntity* pEntity )
	: CMessage( MSG_DESTROY_ENTITY )
{
	m_pEntity = pEntity;
	m_pEntity->AddRef();
}

CDestroyEntityMessage::~CDestroyEntityMessage( void )
{
	m_pEntity->Release();
	m_pEntity = nullptr;
}
